package com.todod.base.module.base.controller.admin.devicebase.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.todod.base.framework.excel.core.annotations.DictFormat;
import com.todod.base.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 仪器型号查看 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceBaseRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "仪器型号编码")
    @ExcelProperty("仪器型号编码")
    private String deviceModeCode;

    @Schema(description = "仪器类型")
    @ExcelProperty(value = "仪器类型", converter = DictConvert.class)
    @DictFormat("yq_type")
    private String type;

    @Schema(description = "仪器型号")
    @ExcelProperty("仪器型号")
    private String mode;

    @Schema(description = "厂家编号")
    @ExcelProperty(value = "厂家编号", converter = DictConvert.class)
    @DictFormat("factory_code")
    private String factoryCode;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "状态")
    @ExcelProperty("状态")
    private Boolean state;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "协议")
    @ExcelProperty(value = "协议", converter = DictConvert.class)
    @DictFormat("xy_type")
    private String protocol;

    @Schema(description = "端口号")
    @ExcelProperty("端口号")
    private String port;

    @Schema(description = "IP")
    @ExcelProperty("IP")
    private String ip;

}